package com.example.service;

import com.example.entity.Delivery;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.StuDelivery;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cyk
 * @since 2022-02-19
 */
@Service
public interface DeliveryService extends IService<Delivery> {

    public List<Delivery> getStuDelivery(Long id);

    public Delivery getDelivery(Long stuid, Long recid);

    int upDelivery(Long id);

    int agreeDelivery(Long id);

    int refuseDelivery(Long id);

    int saveDelivery(Delivery delivery);

    public Delivery find(Delivery delivery);

    public Delivery delDelivery(Long id);

    public List<StuDelivery> stuDelivery(Long id);
}
